﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using DevExpress.Xpo;


namespace RemoteImaging.LicensePlate
{
    using RemoteImaging.Extensions;

    public class LicensePlateSpec
    {
        public DateTime CaptureTime;
        public string LicensePlateNumber;
        public int LicensePlateColor;
        public int CapturedFrom;
        public int PlateX;
        public int PlateY;
        public int PlateW;
        public int PlateH;
        public Image Image;
        public bool isDrivingReversly; //是否逆向行驶

        public LicensePlateSpec Clone()
        {
            var a = new LicensePlateSpec();
            a.CaptureTime = this.CaptureTime;
            a.LicensePlateNumber = this.LicensePlateNumber;
            a.LicensePlateColor = this.LicensePlateColor;
            a.CapturedFrom = this.CapturedFrom;
            a.PlateX = this.PlateX;
            a.PlateY = this.PlateY;
            a.PlateW = this.PlateW;
            a.PlateH = this.PlateH;
            a.Image = AForge.Imaging.Image.Clone((Bitmap)this.Image);
            return a;
        }
    }
}
